package cn.exempale.mscapplication.model.db.entity;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import cn.exempale.mscapplication.emnus.ProgressType;

@Entity(tableName = "task")
public class TaskEntity implements Serializable {

    @PrimaryKey
    @NonNull
    @ColumnInfo(name = "task_id")
    private String taskId; // 任务id
    @ColumnInfo(name = "crate_time")
    private Date crateTime; // 创建时间
    private String contact; // 联系人/电话
    @ColumnInfo(name = "progress_status")
    private int progressStatus; // 处理状态
    @ColumnInfo(name = "file_name")
    private String fileName; // 文件名字
    @NonNull
    private int deleted; // 删除状态

    @NonNull
    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(@NonNull String taskId) {
        this.taskId = taskId;
    }

    public Date getCrateTime() {
        return crateTime;
    }

    public void setCrateTime(Date crateTime) {
        this.crateTime = crateTime;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public int getProgressStatus() {
        return progressStatus;
    }

    public void setProgressStatus(int progressStatus) {
        this.progressStatus = progressStatus;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }
}
